﻿@model IEnumerable<Doan.Forum.Models.Category>
@{
    ViewBag.Title = "BoxCategory";
}

<div class="side-box profile-box">
<h5>Danh mục diễn đàn</h5>
    <ul class="boxcategory">
        @foreach (var item in Model)
        {
            <li>
                <a href=@Url.Action("SubCategoryList", "Home", new { id = item.CategoriId })>@item.CategoryName</a>
            </li>
            foreach (var cate in item.Category1)
            {
                <li style="margin-left: 20px;">
                    <a href=@Url.Action("TopicList", "Home", new { id = cate.CategoriId })> @cate.CategoryName </a>
                </li>
            }
        }
    </ul>
</div>
